import requests as req

resp = req.get("https://www.baidu.com")
print(resp)
print(resp.status_code)
print(resp.content)
print(resp.text)
# print(resp.json())


resp = req.get("https://www.baidu.com", params={"key1": "abc", "key2": "123"})
print(resp.url)


resp = req.post("https://www.baidu.com", json={"key1": "abc", "key2": "123"})
print(resp.status_code)




